package com.fxu.framework.core.dto;

import com.fxu.framework.core.base.Constant;
import com.fxu.framework.core.sql.OrderNo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 分页请求类
 * @author fangxu
 * @version 1.1.0
 */
@Getter
@Setter
@ApiModel(value = "OffsetReq", description = "分页请求类")
public class OffsetReq implements Serializable {

    @ApiModelProperty(value = "列表最后一个ID", required = true)
    private Long nextId;

    @ApiModelProperty(value = "读取个数", required = true)
    private Integer pageSize = Constant.DEFAULT_PAGE_SIZE;

    @ApiModelProperty(value = "是否倒序", required = true)
    private Boolean isDesc = true;
}
